Memory usage improvement using runtime alias detection
نویسندگان
چکیده
Tofte and Talpin proposed a novel method for memory management called region inference in typed, higher-order languages[7]. In their method, memory is composed of blocks called regions, and when to allocate and deallocate regions are determined automatically by the compiler using a type system, and source programs are translated into target programs with region annotations. Their method realizes fairly economical use of memory for many programs. However, there are some kinds of programs which are not friendly to region inference. When executed on region-based systems, these programs can cause large amount of memory leak and in the worst case, they cannot finish their execution because of memory shortage. Therefore, some people proposed methods to improve memory usage of Tofte/Talpin system and others proposed different region inference systems. In this paper, we propose another technique to improve memory usage of Tofte/Talpin system. Our technique adds some changes to Storage Mode Analysis, which is a succeeding phase of their system, and delays some of decisions till runtime as to whether or not it is possible to overwrite existing objects. Our method is especially useful for a program compiled separately, where we cannot see the contexts in which top-level funtions are called. We implemented this technique to MLKit and confirmed that the amount of memory used during execution is reduced for some programs.
منابع مشابه
Selective Runtime Memory Disambiguation in a Dynamic Binary Translator
Alias analysis, traditionally performed statically, is unsuited for a dynamic binary translator (DBT) due to incomplete control-flow information and the high complexity of an accurate analysis. Wholeprogram profiling, however, shows that most memory references do not alias. The current technique used in DBTs to disambiguate memory references, instruction inspection, is too simple and can only d...
متن کاملImproving the RX Anomaly Detection Algorithm for Hyperspectral Images using FFT
Anomaly Detection (AD) has recently become an important application of target detection in hyperspectral images. The Reed-Xialoi (RX) is the most widely used AD algorithm that suffers from “small sample size” problem. The best solution for this problem is to use Dimensionality Reduction (DR) techniques as a pre-processing step for RX detector. Using this method not only improves the detection p...
متن کاملMPI Runtime Error Detection with MUST: Advanced Error Reports
The Message Passing Interface (MPI) is a widely used paradigm for distributed memory programming. Its API is primarily designed for good performance and less for usability; it provides only very limited abstractions that help enforce its correct use. As a result, application developers need tools that aid in the detection and removal of MPI usage errors. Our runtime error detection tool MUST ad...
متن کاملInferring Alias Contracts in VCC using Separation Analysis
The main goal of this work is to enable an interplay between two different verification tool chains: Frama-C, developed concomitantly by Commissariat à l’Énergie Atomique et aux Énergies Alternatives and Inria, and the Verified C Compiler, developed by Microsoft Research. Both tools have a long history and contain powerful algorithms for static verification of C source code. Both tools address ...
متن کاملRun-time Support for Controlling Communication-Induced Memory Fluctuation
Many parallel applications require a large volume of transient memory to hold data from communication, therefore demonstrating a pattern of communication-induced memory usage fluctuation. Even though these applications’ persistent working data might fit in physical memory, the transient peak memory usage could still lead to disk swapping or even out-of-memory error. In this paper, we present a ...
متن کاملذخیره در منابع من
با ذخیره ی این منبع در منابع من، دسترسی به آن را برای استفاده های بعدی آسان تر کنید
عنوان ژورنال:
دوره شماره
صفحات -
تاریخ انتشار 2006